package com.spring.multidb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spring.multidb.dao.db1.StudentDao;
import com.spring.multidb.model.Student;
import com.spring.multidb.service.D2Service;

@Service("D2ServiceImpl")
public class D2ServiceImpl implements D2Service {

	@Autowired
	private StudentDao studentDao;
	
	public void addStudent(Student student) {
		studentDao.add(student);
	}

	public List<Student> findAll() {
		return studentDao.findAll();
	}

}
